home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1993 / The Association of Shareware Professionals Advantage CD-ROM 1993.iso / files / commions / ca29_1 / ca29_3.exe / PC-2-PC.DOC < prev    next >
Text File  |  1992-11-30  |  22KB  |  880 lines

  1. COM-AND Inter-PC File transfer
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.           -----------------------------------------
  13.             COM-AND Inter-PC File transfer
  14.           Script based file transfer for the IBM PC
  15.           -----------------------------------------
  16.  
  17.  
  18.  
  19.  
  20.     COM-AND, and the PC-2-PC script are copyright 1992 by CABER
  21.     Software.  COM-AND is distributed freely and may be copied by
  22.     anyone for any number of machines, for purposes of evaluation.
  23.     The author offers COM-AND and its accessory programs as "share-
  24.     ware".  If you USE the program after evaluating it, you MUST
  25.     pay for it.
  26.  
  27.  
  28.     The complete user license and registration information is to be
  29.     found in the file REGISTER.DOC.  Limitations on redistribution
  30.     of COM-AND are set out in the file VENDOR.DOC.    These two files
  31.     are included with the COM-AND program release.
  32.  
  33.  
  34.  
  35.                  CABER Software
  36.                  R. (Scott) McGinnis
  37.                  P.O. Box 3607 Mdse Mart
  38.                  Chicago, IL 60654-0607
  39.  
  40.                  GEnie, Delphi: TARTAN
  41.                  CIS .......... 73147,2665
  42.                  Internet ..... 73147.2665@compuserve.com
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. Version 1.1: 921012
  55.  
  56. COM-AND Inter-PC File transfer
  57.  
  58.  
  59.                  Table of Contents
  60.                  -----------------
  61.  
  62. I.    Introduction  .............................................. page 1
  63.  
  64.     A. What is COM-AND? ........................................ page 1
  65.     B. The PC-2-PC script ...................................... page 1
  66.  
  67. II.    Installing the script ...................................... page 2
  68.  
  69.     A. Install COM-AND ......................................... page 2
  70.     B. Placing PC-2-PC.CMD ..................................... page 2
  71.     C. (optional) Create a batch file to invoke the script ..... page 2
  72.  
  73. III.    Script initialization ...................................... page 3
  74.  
  75. IV.    File transfers ............................................. page 5
  76.  
  77.     A. Wildcard transfer ....................................... page 5
  78.     B. Selected file transfer .................................. page 6
  79.  
  80. V.    Exit ....................................................... page 7
  81.  
  82. VI.    DOS gateway ................................................ page 8
  83.  
  84. VII.    Program Requirements ....................................... page 9
  85.  
  86. VIII.    Program and Author Information    ............................ page 10
  87.  
  88.  
  89.                 Appendices
  90.                 ----------
  91.  
  92.  
  93. A.    Null modem  ................................................ page 11
  94.  
  95. B.    Async port speeds .......................................... page 12
  96.  
  97. C.    Modem configuration ........................................ page 13
  98.  
  99.     1. DTR ..................................................... page 13
  100.     2. CD ...................................................... page 13
  101.     3. Modem Escape ............................................ page 14
  102.     4. Hangup .................................................. page 14
  103.     5. Modem Init .............................................. page 14
  104.  
  105.  
  106.  
  107.  
  108.  
  109. Version 1.1: 921012
  110.  
  111. COM-AND Inter-PC File transfer                         Page   1
  112.  
  113.  
  114. I.    Introduction
  115.  
  116.  
  117.     A. What is COM-AND?
  118.  
  119.  
  120.        COM-AND for the IBM PC and compatibles is a communications
  121.        program for use by itself, or for use with several integrated
  122.        accessory programs (which themselves may be used independently of
  123.        COM-AND).  COM-AND provides standard comm program functions:  a
  124.        dialing directory, macros, disk logging, binary and ASCII file
  125.        transfers, scripted execution and so on.
  126.  
  127.  
  128.     B. The PC-2-PC script
  129.  
  130.  
  131.        This document details the PC-2-PC script included with the COM-AND
  132.        release.  PC-2-PC script supports:
  133.  
  134.        o    Direct and dialed connection between two PCs
  135.  
  136.        o    Current directory displays for each PC (on both PCs)
  137.  
  138.        o    Change drive/directory from either PC, on either PC
  139.  
  140.        o    Wild card multiple file transfer from/to either PC
  141.  
  142.        o    Selected file transfer from/to either PC
  143.  
  144.        o    DOS gateway during connection
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164. Version 1.1: 921012
  165.  
  166. COM-AND Inter-PC File transfer                         Page   2
  167.  
  168.  
  169. II.    Installation
  170.  
  171.  
  172.     A. Install COM-AND
  173.  
  174.  
  175.        Refer to the COM-AND release documents (README.DOC and COM-AND.
  176.        DOC) for the description of COM-AND installation, please.
  177.  
  178.  
  179.     B. Placing PC-2-PC.CMD
  180.  
  181.  
  182.        The script file PC-2-PC.CMD should be placed in the COM-AND
  183.        default subdirectory.  If you use the environment variable
  184.        "COM-AND="..., PC-2-PC should be placed in the subdirectory
  185.        indicated by that environment variable.  Otherwise, place the
  186.        script in the same subdirectory as COM-AND.
  187.  
  188.  
  189.     C. (optional) Create a batch file to invoke the script
  190.  
  191.  
  192.        Optionally, you may create a batch file to invoke the script.
  193.        PC-2-PC is an interpreted script...    and therefore gives the
  194.        best performance if executed from a RAMDisk.  If you have such a
  195.        beast, use it!  [Folk more modern (than the author) who use
  196.        caching utilities may freely ignore this advice.]
  197.  
  198.  
  199.        PC-2-PC connects to another machine either through a dialed
  200.        number or by direct connect.  If you are setting up a direct
  201.        connect, using an async port other than the usual modem port (I
  202.        myself disable my mouse...), a batch file is particularly helpful.
  203.        For example, I have a batch file to invoke this script:
  204.  
  205.             c:
  206.             cd\prod
  207.             copy pc-2-pc.cmd e:
  208.             com-and com1 115k /fe:pc-2-pc
  209.  
  210.        [My default COM-AND subdirectory is C:\PROD.  PC-2-PC.CMD is
  211.        placed in C:\PROD.  My RAMDisk is E:.  The mouse serial port
  212.        is COM1 (my modem and my COM-AND's default is COM2).  "115k" in
  213.        COM-AND's run command sets the COM1 async port speed to 115k.
  214.        The "/fe:pc-2-pc" in COM-AND's run command executes the script
  215.        after COM-AND's load-time initialization.]
  216.  
  217.  
  218.  
  219. Version 1.1: 921012
  220.  
  221. COM-AND Inter-PC File transfer                         Page   3
  222.  
  223.  
  224. III.    Script initialization
  225.  
  226.  
  227.     When PC-2-PC.CMD is executed by COM-AND, there'll be a pause (the
  228.     length of which is determined by the speed of the disk on which the
  229.     script resides).  At its start, the script 'GOTO's the end, to draw
  230.     the window.  It may seem a silly way to write a script, but once
  231.     COM-AND has read the whole script once, performance is improved
  232.     drastically!
  233.  
  234.  
  235.     The first thing PC-2-PC does is to open a double window.  The left
  236.     side of the screen always lists files in the current subdirectory
  237.     on the current machine.  The right side displays the subdirectory on
  238.     the other machine once you're connected.
  239.  
  240.  
  241.     Once the window opens, PC-2-PC begins building and displaying the
  242.     current subdirectory.  Again, this may take a bit of time... be
  243.     patient.  When all's done, a window opens over top of the file
  244.     list, prompting for action.
  245.  
  246.  
  247.     At this point, you need to see that COM-AND and the PC-2-PC script
  248.     are ready to connect on the machine with which you wish to talk.
  249.  
  250.  
  251.     Ready both machines.  On one, it doesn't matter which, select either:
  252.  
  253.            2) Wait for direct connect
  254.            4) Wait for call connect
  255.  
  256.     If you are making a direct connect, you are prompted to allow port
  257.     and speed specification(s).  A carriage return alone at this point
  258.     starts the 'waiting'.  If you are making a dialed connect, the script
  259.     simply goes into an autoanswer mode waiting for a call.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274. Version 1.1: 921012
  275.  
  276. COM-AND Inter-PC File transfer                         Page   4
  277.  
  278.  
  279. III.    Script initialization (continued)
  280.  
  281.  
  282.     On the other machine, then select as appropriate:
  283.  
  284.            1) Direct connect
  285.            3) Dial the remote PC
  286.  
  287.     If you are making a direct connect, you are prompted to allow port
  288.     and speed specification(s).  A carriage return alone at this point
  289.     starts connection process.  If you are making a dialed connect,
  290.     you are asked for a dialing directory number for the number to call
  291.     and its parameters.  [The script does not display the dialing direc-
  292.     tory for you at this time.  You need to know it.]
  293.  
  294.  
  295.     One point to emphasize:  The script waiting for connection should
  296.     be started first.  The script 'making' the connect should then be
  297.     started.
  298.  
  299.  
  300.     If the two scripts recognize each other, they begin by exchanging
  301.     subdirectory lists.  When the lists have been exchanged, the script
  302.     is ready to use.  If the two scripts do not connect, check the
  303.     settings (speed etc) used on both, and the null-modem (if used) and
  304.     try again.
  305.  
  306.  
  307.     In particular, if you're attempting a direct connect, try a slower
  308.     speed connect...  the async port used may not be able to handle
  309.     very high speeds (see appendix B).
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329. Version 1.1: 921012
  330.  
  331. COM-AND Inter-PC File transfer                         Page   5
  332.  
  333.  
  334. IV.    File Transfers
  335.  
  336.  
  337.     A. Wildcard transfer
  338.  
  339.  
  340.        Selection 'W' from the main window prompts for direction (are
  341.        you sending or receiving files?) and a wildcard file name.
  342.        Select a direction ('S' or 'R'), and specify the file(s) for
  343.        transfer.  A wildcard file name has the form:
  344.  
  345.            [d:][\path...]<filespec>
  346.  
  347.        where "d:" is an optional drive spec, "\path" is an optional
  348.        subdirectory specifier and filespec is a file name with optional
  349.        "*"s and "?"s DOS users love and respect.  For example:
  350.  
  351.            C:\PROD\COM-AND.*
  352.  
  353.        would move all COM-AND files from one machine to the other.    [By
  354.        the way, it doesn't hurt anything if you move COM-AND.EXE over the
  355.        copy you executed while its executing.  It DOES hurt things if you
  356.        change the script file... don't touch a script file while its
  357.        executing!]
  358.  
  359.  
  360.        If there is at least one file matching the wildcard specification
  361.        you gave, on the appropriate machine, the transfer begins.
  362.  
  363.  
  364.        If a file being transferred via a wildcard specifier duplicates
  365.        a file already existing, the new file's name is modified;  a "$"
  366.        is placed in the last character position.  For example, if you
  367.        copied COM-AND.EXE through wildcard transfer into a subdirectory
  368.        already containing COM-AND.EXE, the new file would be named:
  369.        COM-AND.EX$.
  370.  
  371.  
  372.        The wildcard transfer moves multiple files from one machine to the
  373.        other in one direction at a time.  The file name given the sender
  374.        may be fully qualified (with drive and path).  The receiver places
  375.        the files received on the current subdirectory.
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384. Version 1.1: 921012
  385.  
  386. COM-AND Inter-PC File transfer                         Page   6
  387.  
  388.  
  389. IV.    File Transfers (continued)
  390.  
  391.  
  392.     B. Selected file transfer.
  393.  
  394.        You may select up to 5 files from the current local machine's
  395.        window, and 5 files from the current remote machine's window for
  396.        transfer.  The direction of the transfer is implicit.  Files are
  397.        selected with a point-and-shoot method:
  398.  
  399.            Cursor right   Selects the remote window
  400.            Cursor left      Selects the local window
  401.            PgUp       Moves the current window (local or remote)
  402.                   up 20 files
  403.            PgDn       Moves the current window (local or remote)
  404.                   down 20 files
  405.            Home       Moves the current window (local or remote)
  406.                   to the first 20 files
  407.            End          Moves the current window (local or remote)
  408.                   to the last page of files
  409.            Cursor up      Moves a scroll bar up the list of files
  410.            Cursor down      Moves a scroll bar down the list of files
  411.  
  412.  
  413.        Position the scroll bar to a particular file.  Then type 'S'.
  414.        A window opens and the current list of selections is displayed.
  415.        you are asked to verify the selection with 'y' or 'n'.
  416.  
  417.  
  418.        With one or more files selected, 'T' begins the transfer.
  419.  
  420.  
  421.        If a file being transferred via selection duplicates a file
  422.        already existing, the old file is replaced by the new file.
  423.  
  424.  
  425.        The selected transfer moves multiple files from one machine to the
  426.        other in any direction.  Files must be selected from the current
  427.        subdirectory (local and remote)... if you change directory on
  428.        either side, the list of selected files is cleared.
  429.  
  430.  
  431.        The receiver places the files received on its current sub-
  432.        directory.
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439. Version 1.1: 921012
  440.  
  441. COM-AND Inter-PC File transfer                         Page   7
  442.  
  443.  
  444. V.    Exit
  445.  
  446.  
  447.     The PC-2-PC script terminates when ESC or 'E' is pressed in the
  448.     main window.  [ESC may be used in other windows to cancel a prompt.]
  449.  
  450.  
  451.     If the script is currently linked to another machine, the script on
  452.     the other machine should exit automatically.
  453.  
  454.  
  455.     If the connection was made via a dialed call, a HANGUP is performed.
  456.     Temporary files created by the script are deleted.  A general
  457.     clean-up is performed.
  458.  
  459.  
  460.     The PC-2-PC script terminates both itself and COM-AND on exit (you
  461.     are returned to the DOS prompt).
  462.  
  463.  
  464.     You may wish to modify the script to take some other action on exit.
  465.     For example, you might wish it simply to exit to COM-AND and not to
  466.     DOS.  The script is written to have one single exit, labelled "EXIT:"
  467.     Code is provided in the "EXIT:" procedure to exit to COM-AND and not
  468.     DOS... however, if it is your intention to retain the open line,
  469.     beware of the RESET command there.  RESET closes the current port and
  470.     re-opens the default communications port.
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494. Version 1.1: 921012
  495.  
  496. COM-AND Inter-PC File transfer                         Page   8
  497.  
  498.  
  499. VI.    DOS gateway
  500.  
  501.     At the main window, you may shell-to-DOS at any time with the same
  502.     keystroke as used by COM-AND for the purpose: Alt-F10.
  503.  
  504.  
  505.     If there is memory, a new copy of the SHELL (usually COMMAND.COM) is
  506.     executed.  A connection, if made, is not lost during a shell
  507.     operation (unless you do something like load another comm program!).
  508.  
  509.  
  510.     When you exit the shell, you are returned to COM-AND and the PC-2-PC
  511.     script.  If your shell is COMMAND.COM, typing 'exit' terminates the
  512.     shell.
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549. Version 1.1: 921012
  550.  
  551. COM-AND Inter-PC File transfer                         Page   9
  552.  
  553.  
  554. VII.    Program requirements
  555.  
  556.  
  557.     This program can only function on an IBM PC or DOS compatible
  558.     machine.  COM-AND does direct to screen buffer fetches and stores
  559.     (unless BIOS screen updates are directed using the /C switch or the
  560.     Alt-O options menu).
  561.  
  562.  
  563.     COM-AND is TopView aware even without the /C switch or Alt-O option.
  564.  
  565.  
  566.     COM-AND supports MDA, CGA, EGA and Hercules.  COM-AND uses a Micro-
  567.     soft Mouse if one is available...
  568.  
  569.  
  570.     COM-AND disk I/O is done through the 'Handle' oriented I/O routines
  571.     added to DOS 2.0.  Therefore DOS 2.0 is a minimum requirement.
  572.  
  573.  
  574.     COM-AND (Version 2.9) requires 277K for itself.  You need 384K
  575.     take advantage of the DOS Gateway and to load accessories.
  576.  
  577.  
  578.     This script requires a modem or a null-modem to another computer.
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604. Version 1.1: 921012
  605.  
  606. COM-AND Inter-PC File transfer                         Page  10
  607.  
  608.  
  609. VIII.    Author information
  610.  
  611.  
  612.     COM-AND was written using Microsoft Macro-Assembler.  The author
  613.     likes assembler.  Assembly language is an entirely appropriate
  614.     vehicle for some of the program, and a not-inappropriate vehicle
  615.     for the rest of it.  Everything, in moderation...
  616.  
  617.  
  618.     The author of this script is R.  Scott McGinnis of Chicago, IL.
  619.     My GEnie and Delphi ID:  TARTAN, and CIS id:  73147,2665.
  620.     Comment and suggestions are welcomed:
  621.  
  622.              CABER Software
  623.              R. (Scott) McGinnis
  624.              P.O. Box 3607 Mdse Mart
  625.              Chicago, IL 60654-0607
  626.  
  627.  
  628.     My wife, Elizabeth, has made this script and COM-AND itself possible.
  629.     She even indulges on-line, now and then!  To her I offer my love,
  630.     respect and warmest moments <grin>.
  631.  
  632.  
  633.     This script (Version 1.1) may be distributed freely (but it isn't a
  634.     whole lot of use without COM-AND).  Any improvements you return to
  635.     the author get attention...  errors you report get corrected.  COM-
  636.     AND is shareware.  If COM-AND is USED after a 30 day evaluation,
  637.     you MUST pay for it.  If used for a commercial application, you MUST
  638.     pay for it.  [Please read REGISTER.DOC.]
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659. Version 1.1: 921012
  660.  
  661. COM-AND Inter-PC File transfer                         Page  11
  662.  
  663.  
  664. A.    Null modem
  665.  
  666.     This script has been used successfully with the following null modem:
  667.  
  668.     DB-25 pin assignments and connections:
  669.     -------------------------------------------
  670.     RS-232 pins            RS-232 pins
  671.     -----------            -----------
  672.     (fg)   1 ----------------------  1  (fg)
  673.     (tx)   2 --------\   /---------  2  (tx)
  674.                X
  675.     (rx)   3 --------/   \---------  3  (rx)
  676.     (gnd)  7 ----------------------  7  (gnd)
  677.  
  678.     (cts)  4 -+             +-  4  (cts)
  679.           !             !
  680.     (rts)  5 -+             +-  5  (rts)
  681.  
  682.     (dsr)  6 -+             +-  6  (dsr)
  683.     (cd)   8 -!             !-  8  (cd)
  684.           !             !
  685.     (dtr) 20 -+             +- 20  (dtr)
  686.  
  687.     In other words, Pin 2 of one to pin 3 of the other, and pin 3 of the
  688.     first to pin 2 of the other.  On each side, jumper pins 4 and 5, and
  689.     jumper pins 6, 8, and 20.  Connect the pin 7s of each machine, and
  690.     the pin 1s.
  691.  
  692.  
  693.     This null modem works for many purposes.  This script does not look
  694.     at CD if a direct connection is used (CDRESPECT OFF).  Tieing CD
  695.     to DSR on each side would provide an active carrier detect.  Other
  696.     applications may work better with other null modem connections.
  697.  
  698.  
  699.     Pins of a 9 pin shell correlate to the 25 pin shell, as follows:
  700.  
  701.     DB-9:       DB-25:   Name:
  702.     -----       ------   -------------------
  703.     1 ---- cd ----- 8   Data Carrier Detect
  704.     2 ---- rx ----- 3   Receive Data Line
  705.     3 ---- tx ----- 2   Transmit Data Line
  706.     4 ---- dtr --- 20   Data Terminal Ready
  707.     5 ---- gnd ---- 7   Signal Ground
  708.     6 ---- dsr ---- 6   Data Set Ready
  709.     7 ---- rts ---- 4   Request to Send
  710.     8 ---- cts ---- 5   Clear to Send
  711.     9 ---- ri ---- 22   Ring Indicator (unused above)
  712.  
  713.  
  714. Version 1.1: 921012                           Appendices
  715.  
  716. COM-AND Inter-PC File transfer                         Page  12
  717.  
  718.  
  719. B.    Async port speeds
  720.  
  721.  
  722.     The 8250 UART used in the original asynchronous port (and some
  723.     modem) circuits can theoretically run at speed up to 115K bps.
  724.     However, in fact, many 8250 chips are found to 'wobble' their
  725.     timings at high speeds.
  726.  
  727.  
  728.     Pin-identical replacement UARTS are available to solve the problem.
  729.     An excellent discussion of the problem, and sources for UART re-
  730.     placements may be found in Chuck Forsberg's DSZ document.
  731.  
  732.  
  733.     The capability of one machine's UART determines the maximum speed
  734.     of this script.  As errors occur, the transfer efficiency drops.
  735.     Drastically.
  736.  
  737.  
  738.     COM-AND implements only 'relaxed' protocols.  This means timeouts
  739.     are very long in COM-AND - suitable for the network/switched envi-
  740.     ronment, but not for direct connects.  When a character is dropped,
  741.     or errored, COM-AND waits a fixed time before retransmitting or
  742.     requesting a retransmit.  As the line speed increases, timeouts on
  743.     error reduce the overall efficiency.
  744.  
  745.  
  746.     The CPU clock speed also has its toll.    COM-AND is a general purpose
  747.     communications program, accommodating software flow control (XON/
  748.     XOFF).    On slower machines, the overhead to check for XON/XOFF
  749.     becomes a limiting factor in the software's capability.
  750.  
  751.  
  752.     If  you use this script, experiment with speed settings.  If you find
  753.     any improvements, please inform the author.
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769. Version 1.1: 921012                           Appendices
  770.  
  771. COM-AND Inter-PC File transfer                         Page  13
  772.  
  773.  
  774. C.    Modem Configuration
  775.  
  776.  
  777.     COM-AND defaults do not require modem pre-configuration (although
  778.     you may do it!).  However, certain features cannot be used unless
  779.     you configure your modem before you use COM-AND.
  780.  
  781.  
  782.     1. DTR (Data Terminal Ready)
  783.  
  784.        COM-AND, by default, hangs up using the command sequences defined
  785.        through the Alt-S setup (hangup and modem escape).  However, you
  786.        may alternately select 'Drop DTR to hangup' through the Alt-O
  787.        options.  Dropping DTR is the only way to hangup certain modems,
  788.        and is generally much faster than the command sequences.
  789.  
  790.  
  791.        Most Hayes compatible modems allow configuration of the DTR sense
  792.        through a switch-block.  If you wish to use DTR to hangup, be sure
  793.        your modem follows the DTR signal.  Refer to the documentation
  794.        provided with your modem to ensure that option switches are set
  795.        appropriately.
  796.  
  797.  
  798.     2. CD (Carrier Detect)
  799.  
  800.        COM-AND (presently) uses the CD sense line for several purposes.
  801.        The 'CONNECT' test supported in the script language, test for
  802.        carrier detect upon exit, and the file transfer protocols all
  803.        require the modem report carrier detect.  True carrier detect
  804.        is the only way to determine if you are 'on-line' or 'off-line'.
  805.  
  806.  
  807.        Many Hayes compatible modems are sold with a carrier detect
  808.        override (in other words the modem reports carrier detect all the
  809.        time).  When carrier detect is overridden, COM-AND cannot detect
  810.        when carrier is lost during a file transfer or during a session.
  811.  
  812.  
  813.        Be sure the modem is reporting true CD (instead of it just saying
  814.        'yes').  Most Hayes compatible modems allow configuration of the
  815.        CD sense through a switch-block.  Refer to the documentation
  816.        provided with your modem to ensure that modem switches are set
  817.        appropriately.
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824. Version 1.1: 921012                           Appendices
  825.  
  826. COM-AND Inter-PC File transfer                         Page  14
  827.  
  828.  
  829. D.    Modem Configuration (continued)
  830.  
  831.  
  832.     3. Modem Escape
  833.  
  834.        COM-AND issues the "Modem escape" defined through the Alt-S setup,
  835.        prior to modem initialization and hangup.  Be sure this value is
  836.        set correctly in Alt-S.
  837.  
  838.  
  839.     4. Hangup
  840.  
  841.        COM-AND hangs up using the command sequences defined through the
  842.        Alt-S setup (hangup and modem escape) and the drop DTR setting as
  843.        discussed above.  Be sure these values are set correctly (or see
  844.        below).
  845.  
  846.  
  847.     5. Modem Init
  848.  
  849.        COM-AND transmits a modem initialization when PC-2-PC is set to
  850.        await a call.  This sequence must enable the modem's autoanswer.
  851.        The sequence is defined in the first line of the script.  The
  852.        value provided is appropriate for most modems.  Modify it as
  853.        you need.  Please refer to your modem's documentation.
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879. Version 1.1: 921012                           Appendices
  880.